package com.example.bean;

public class Class {
    private int cid;
    private String cname;
    private String cgrade;
    private String ctname;
    private String cflag;
    private String cnum;

    public Class() {
    }

    public Class(String cname, String cgrade, String ctname, String cflag, String cnum) {
        this.cname = cname;
        this.cgrade = cgrade;
        this.ctname = ctname;
        this.cflag = cflag;
        this.cnum = cnum;
    }

    public Class(String cname) {
        this.cname=cname;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCgrade() {
        return cgrade;
    }

    public void setCgrade(String cgrade) {
        this.cgrade = cgrade;
    }

    public String getCtname() {
        return ctname;
    }

    public void setCtname(String ctname) {
        this.ctname = ctname;
    }

    public String getCflag() {
        return cflag;
    }

    public void setCflag(String cflag) {
        this.cflag = cflag;
    }

    public String getCnum() {
        return cnum;
    }

    public void setCnum(String cnum) {
        this.cnum = cnum;
    }

    @Override
    public String toString() {
        return "Class{" +
                "cname='" + cname + '\'' +
                ", cgrade='" + cgrade + '\'' +
                ", ctname='" + ctname + '\'' +
                ", cflag='" + cflag + '\'' +
                ", cnum=" + cnum +
                '}';
    }
}
